package com.zsrt.java.day20161230.lh.day.ex.demo01;

public class Employee extends Person{
	
	private String department;
	private String salary;
	public String getDepartment() {
		return department;
	}
	public void setDepartment(String department) {
		this.department = department;
	}
	public String getSalary() {
		return salary;
	}
	public void setSalary(String salary) {
		this.salary = salary;
	}
	public Employee(String department, String salary) {
		super();
		this.department = department;
		this.salary = salary;
	}
	public Employee() {
		super();
	}
	public Employee(String department, String salary,String name, char sex) {
		super();
		this.department = department;
		this.salary = salary;
		super.setName(name);
		super.setSex(sex);
	}
	
	public void printProperty(){
		System.out.println(this.getDepartment()+this.getName()+this.getSalary()+this.getSex()+this.getName()+this.getSex());
	}
	
	

}
